import { ActionType } from "../action-types";

interface AdditionAction {
  type: ActionType.ADDITION;
  payload: number;
}
interface SubtractionAction {
  type: ActionType.SUBTRACTION;
  payload: number;
}
interface RestoreAction {
  type: ActionType.RESTORE;
}

export type Action = AdditionAction | SubtractionAction | RestoreAction;
